package d0320;
import java.io.File;
import java.io.IOException;
public class Test1 {
    public static void main(String[] args) {
        File file = new File("d://HelloWorld.txt");
        File file1 = new File("d://IOTest");
        File file2 = new File("d://IOTest//HelloWorld.txt");
        try {
            file.createNewFile();
            System.out.println("HelloWorld是否是文件"+file.isFile());
            file1.mkdir();
            file2.createNewFile();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}